package Annotation.DataBase;


public class ActiveSQL {
	
	//private String insertSQL=null;
	/**
	 * had been test on 2013.05.29 - used success!
	 * @param stu_number
	 * @param stu_name
	 * @param stu_gender
	 * @param stu_pasword
	 */
	public void creatAccount_LogTable(String stu_number, String stu_name, String stu_gender, String stu_pasword){
		String SQL=null;
		SQL="insert into student_info (student_number,student_name,student_gender,student_password) values ('" +
				stu_number + "','" +
				stu_name + "','" +
				stu_gender+ "','" + 
				stu_pasword + "')";
		command(SQL);
	}

	/**
	 * had been test on 2013.05.28 - used success!
	 * @param SQL
	 */
	private void command(String SQL){
		MySQLConnection c=new MySQLConnection();
		
		c.BuildConnection();
		c.commond(SQL);
		c.closeConnection();
	}
	
	
	
//	/**
//	 * @param args
//	 */
//	public static void main(String[] args) {
//		ActiveSQL s= new ActiveSQL();
//		s.creatAccount_LogTable("", "", "", "");
//	}


}
